
import BookType.BookTypeBean;
import Employee.EmployeeBean;
import java.awt.Desktop;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URL;
import java.net.URLConnection;
import java.sql.Date;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Mukesh
 */
public class test {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String i = null;
        try {
//            String msg="http://login.smsgatewayhub.com/smsapi/pushsms.aspx?user=courses18&pwd=Login$1234&to=9335727773&sid=ABASIL&msg=BASILWelcomeou.&fl=0&gwid=2";
//            URL url = new URL(msg);
//            URI uri = new URI(url.getProtocol(), url.getUserInfo(), url.getHost(), url.getPort(), url.getPath(), url.getQuery(), url.getRef());
//            url = uri.toURL();
//            HttpURLConnection httpReq = (HttpURLConnection) url.openConnection();
//            httpReq.setDoOutput(true);
//            httpReq.setRequestMethod("GET");
//            InputStream response = httpReq.getInputStream();
//            BufferedReader br = new BufferedReader(new InputStreamReader(response));
//            i = br.readLine();
//            System.out.println(i);
            System.out.println(PurchaseOrder.Query.viewReceiveOrder().size());
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println(e);
        }
    }
}
